{% extends "admin_base.html" %}

{% block title %}管理员首页{% endblock %}

{% block extra_css %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/admin_main.css') }}">
{% endblock %}

{% block content %}
<div class="dashboard-welcome">
    <div class="welcome-content">
        <h1><i class="bi bi-bank me-2"></i>欢迎使用银行管理系统</h1>
        <p class="lead">管理员 {{ session.get('username', 'admin') }}，今天是 {{ current_date }}</p>
        <p>请从左侧菜单选择要管理的功能模块</p>
        
        <div class="dashboard-stats mt-5">
            <div class="row">
                <div class="col-md-3">
                    <div class="stat-card">
                        <i class="bi bi-people"></i>
                        <h3>2,458</h3>
                        <p>注册客户</p>
                    </div>
                </div>
                <div class="col-md-3">
                    <div class="stat-card">
                        <i class="bi bi-credit-card"></i>
                        <h3>5,672</h3>
                        <p>银行卡</p>
                    </div>
                </div>
                <div class="col-md-3">
                    <div class="stat-card">
                        <i class="bi bi-arrow-left-right"></i>
                        <h3>12,890</h3>
                        <p>今日交易</p>
                    </div>
                </div>
                <div class="col-md-3">
                    <div class="stat-card">
                        <i class="bi bi-cash-stack"></i>
                        <h3>¥1.2亿</h3>
                        <p>存款总额</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}

{% block extra_js %}
<script src="{{ url_for('static', filename='js/admin_main.js') }}"></script>
{% endblock %}